/*package com.gemantic.utils;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Configuration;
import org.springframework.stereotype.Component;

import com.gemantic.config.RedisCacheConfiguration;

import redis.clients.jedis.Jedis;
import redis.clients.jedis.JedisPool;

*//**
 * Redis工具类
 * @author sfwang7
 *
 *//*

@Component
@Configuration
public class RedisUtil {
	
	@Autowired
	RedisCacheConfiguration redisCacheConfiguration;
	
	private final static Logger logger = LoggerFactory.getLogger(RedisUtil.class);
	
	public String redis4AuthKeystone(String json) {
		logger.info("===============RedisUtil=================");
		logger.info("redis json " + json);
		//加入到redis
		Jedis jedis = null;
		String keystoneId = "";
		try{
			JedisPool jedisPool = redisCacheConfiguration.getJedisPool();
			jedis = jedisPool.getResource();
			String returnJedis = jedis.setex(keystoneId, 3600, json);
			logger.info("set data to redis success...");
			return keystoneId;
		}catch(Exception e){
			e.printStackTrace();
		}finally{
			 jedis.close();
		}
		return keystoneId;
	}

}*/